/**
 * @developer：MR·Feng
 * 封装公共方法
 */

export const layout = (val) => ({
    labelCol: {
        span: 6,
    },
    wrapperCol: {
        span: val || 18,
    },
});

export const tailLayout = (val) => ({
    wrapperCol: {
        offset: 0,
        span: val || 24,
    },
});

export const useAuth = (bool) => ({
    isLogin: bool || false,
});

// 对象 - 判断空对象
export const isnullObj = (a) => {
    let len = Object.keys(a);
    return len.length === 0;
};

// 对象 - 删除对象属性
export const delKey = (obj, ...args) => {
    args.forEach((v) => delete obj[v]);
    return obj;
};
